﻿package Message.Game
{
    import Framework.MQ.*;
    import Framework.Serialize.*;

    public class SRedSingleRobInfo extends IMessageBase
    {
        public var redId:int;
        public var ownerName:String;
        public var robPlayerName:String;
        public var robTime:Date;
        public var robMoney:int;
        public const _type:int = 16121;
        public static var _regist:SRedSingleRobInfo = new SRedSingleRobInfo(true);

        public function SRedSingleRobInfo(param1:Boolean = false)
        {
            if (param1)
            {
                MessageManager.instance().regist(this);
            }
            return;
        }// end function

        override public function getType() : int
        {
            return this._type;
        }// end function

        override public function clone() : IMessageBase
        {
            return new SRedSingleRobInfo();
        }// end function

        override public function __write(param1:SerializeStream) : void
        {
            param1.writeInt(this.redId);
            param1.writeString(this.ownerName);
            param1.writeString(this.robPlayerName);
            param1.writeDate(this.robTime);
            param1.writeInt(this.robMoney);
            return;
        }// end function

        override public function __read(param1:SerializeStream) : void
        {
            this.redId = param1.readInt();
            this.ownerName = param1.readString();
            this.robPlayerName = param1.readString();
            this.robTime = param1.readDate();
            this.robMoney = param1.readInt();
            return;
        }// end function

    }
}
